// 法规制度

import request from "@/api/request";

// 查询所有法规类别
export const select_fg = () => {
    return request({
      url: "/statutesystem/statuteCate/selectIdName",
      method: "post",
      headers: { "Content-Type": "application/json" },
    });
  };

//   分页查询所有法规制度
export const selectall_fg = (params) => {
    return request({
      url: "/statutesystem/statuteSystem/selectAll",
      method: "post",
      data:params,
    });
  };

//   逻辑删除法规制度
export const delete_fg = (params) => {
    return request({
      url: "/statutesystem/statuteSystem/delete/"+params,
      method: "post",
    });
  };

//   新增
export const add_fg = (params) => {
    return request({
      url: "/statutesystem/statuteSystem/insert",
      method: "post",
      data:params,
      headers: { "Content-Type": "application/json" },
    });
  };

//  修改法规制度
export const update_fg = (params) => {
    return request({
      url: "/statutesystem/statuteSystem/update",
      method: "post",
      data:params,
      headers: { "Content-Type": "application/json" },
    });
  }; 

//   查询法规制度详细信息
export const details_fg = (params) => {
    return request({
      url: "/statutesystem/statuteSystem/selectDetails/"+params,
      method: "post",
    });
  }; 

//   发布单位列表
export const orgList_fg = () => {
    return request({
      url: "/statutesystem/statuteSystem/orgList",
      method: "post",
      headers: { "Content-Type": "application/json" },
    });
  }; 

//   发布人员列表
export const personList_fg = (params) => {
    return request({
      url: "/statutesystem/statuteSystem/personList/"+params,
      method: "post",
    });
  }; 

//   关键词组列表
export const ddictList_fg = (params) => {
    return request({
      url: "/statutesystem/statuteSystem/ddictList/"+params,
      method: "post",
    });
  }; 

  // 附件板块
  // 上传
  export const upload_fg = (params) => {
    return request({
      url: "/statutesystem/statuteAcc/upload",
      method: "post",
      data:params,
    });
  }; 

  // 查询附件列表
  export const accessoryList_fg = (params) => {
    return request({
      url: "/statutesystem/statuteAcc/accessoryList/"+params,
      method: "post",
    });
  }; 

  // 逻辑删除法规制度附件
  export const deletefj_fg = (params) => {
    return request({
      url: "/statutesystem/statuteAcc/delete/"+params,
      method: "post",
    });
  }; 

  // 下载附件
  export const download_fg = (params) => {
    return request({
      url: "/statutesystem/statuteAcc/download/",
      method: "post",
      data:params,
    });
  };  